/* 首页路由
 * @Author: Leil 
 * @Date: 2018-08-19 00:16:43 
 * @Last Modified by: Leil
 * @Last Modified time: 2018-09-06 11:00:40
 */
const postModel = require('../models/post')
module.exports = function (app) {
    app.get('/', function (req, res) {
        res.render('index')
    })

    app.use('/posts', require('./posts'))
    require('./posts')(app)

    app.use('/login', require('./login'))
    app.use('/admin', require('./admin'))

    require('./category')(app)

    app.use('/post', require('./post'))

    require('./upload')(app)

    require('./page')(app)

    require('./recommend')(app)

    // app.get('/post/:postId', function (req, res) {
    //     res.render('admin/post')
    // })

    


}
